{"ast":null,"code":"import { ItemGroup } from 'rc-menu';\nimport * as React from 'react';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nimport InternalMenu from './menu';\nimport { SiderContext } from '../layout/Sider';\nimport MenuDivider from './MenuDivider';\nimport Item from './MenuItem';\nimport SubMenu from './SubMenu';\nconst Menu = /*#__PURE__*/forwardRef((props, ref) => {\n  const menuRef = useRef(null);\n  const context = React.useContext(SiderContext);\n  useImperativeHandle(ref, () => ({\n    menu: menuRef.current,\n    focus: options => {\n      var _a;\n      (_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus(options);\n    }\n  }));\n  return /*#__PURE__*/React.createElement(InternalMenu, Object.assign({\n    ref: menuRef\n  }, props, context));\n});\nMenu.Item = Item;\nMenu.SubMenu = SubMenu;\nMenu.Divider = MenuDivider;\nMenu.ItemGroup = ItemGroup;\nexport default Menu;","map":{"version":3,"names":["ItemGroup","React","forwardRef","useImperativeHandle","useRef","InternalMenu","SiderContext","MenuDivider","Item","SubMenu","Menu","props","ref","menuRef","context","useContext","menu","current","focus","options","_a","createElement","Object","assign","Divider"],"sources":["/data/messenger.client/node_modules/antd/es/menu/index.js"],"sourcesContent":["import { ItemGroup } from 'rc-menu';\nimport * as React from 'react';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nimport InternalMenu from './menu';\nimport { SiderContext } from '../layout/Sider';\nimport MenuDivider from './MenuDivider';\nimport Item from './MenuItem';\nimport SubMenu from './SubMenu';\nconst Menu = /*#__PURE__*/forwardRef((props, ref) => {\n  const menuRef = useRef(null);\n  const context = React.useContext(SiderContext);\n  useImperativeHandle(ref, () => ({\n    menu: menuRef.current,\n    focus: options => {\n      var _a;\n      (_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus(options);\n    }\n  }));\n  return /*#__PURE__*/React.createElement(InternalMenu, Object.assign({\n    ref: menuRef\n  }, props, context));\n});\nMenu.Item = Item;\nMenu.SubMenu = SubMenu;\nMenu.Divider = MenuDivider;\nMenu.ItemGro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